package ma.techit.pfe.agence.voyage.util;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class SessionFactoryHelper {
	@Autowired
	private SessionFactory sessionFactory;

	public  Session getCurrentSession() {
		return sessionFactory.getCurrentSession();
	}
}
